package com.jbl.te.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

public class SelectEndJob implements Job {

    @Autowired
    RedisTemplate redisTemplate;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        redisTemplate.delete("student_courseclass_begin");
        redisTemplate.delete("student_courseclass_end");
    }
}
